package com.faya.green.enumeration;

/**
 * 用户 ：LX
 * 创建时间： 2018/7/11. 0:09
 * 地点：广州
 * 目的: 返回给前端的json 的数据状态
 * 结果：
 */
public enum ResultEnum {

    RESULT_SUCCESS(1, "success", "成功"),
    RESULT_ERROR(2, "error", "失败");

    private int index;
    private String status;
    private String annotate;

    ResultEnum(int index, String status, String annotate) {
        this.index = index;
        this.status = status;
        this.annotate = annotate;
    }

    public int getIndex() {
        return index;
    }

    public String getStatus() {
        return status;
    }

    public String getAnnotate() {
        return annotate;
    }
}
